package org.base.oj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.base.oj.common.BusinessException;
import org.base.oj.domain.User;

import java.util.Map;

public interface UserService extends IService<User>{
    void reg(User user) throws BusinessException;
    User getByUserName(String userName);
    Map<String, Object> login(User user) throws BusinessException;
}
